package com.szrt.javaweb.ch00.student.dao;


import org.junit.Test;

import com.szrt.javaweb.ch00.student.dao.impl.StudentDaoImpl;
import com.szrt.javaweb.ch00.student.dao.impl.StudentDaoProxy;

public class StudentDaoTest {
	
	/**
	 * 开启单打独斗模式
	 * @throws Exception
	 */
	@Test
	public void add() throws Exception {
		StudentDaoImpl  hege = new StudentDaoImpl();
		hege.act("伪装者...");
	}
	
	/**
	 * 开启鞍前马后模式  代理模式  经纪人
	 * @throws Exception
	 */
	@Test
	public void add2() throws Exception {
		StudentDaoImpl  hege = new StudentDaoImpl();
		
		StudentDaoProxy wangkai = new StudentDaoProxy(hege);
		wangkai.act("伪装者...");
	}

}
